package cn.wolfcode.luowowo.query;

import lombok.Data;

@Data
public class TravelQuery extends QueryObject {
    //最新
    public static final Integer NEW_DAY = 1;
    //最热
    public static final Integer HOT_DATA = 2;
    //关联目的地id
    private String destId;
    //关联目的地的最新跟最热字段
    private Integer orderType = 1;
    //人均消费
    private Integer perExpendType = -1;
    //出行天天数
    private Integer dayType = -1;

    //消费条件
    public TravelCondition getMoney() {
        return TravelCondition.MONEY_MAP.get(perExpendType);
    }

    //天数条件
    public TravelCondition getDay() {
        return TravelCondition.DAY_MAP.get(dayType);

    }
}
